﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Plantillanoheader.master" AutoEventWireup="true" CodeFile="RecuperarPassword.aspx.cs" Inherits="PagComunes_RecuperarPassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="headerslider" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyprincipal" Runat="Server">
<div id="formulario">
 <h3>Recuperar Contraseña</h3>
   <p></p>
   Si olvidó su contraseña, puede utilizar esta página para que le sea enviada por correo electrónico.
   <p></p>
   <asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
      <UserNameTemplate>
         <strong class="txt1">Ingresa tu Código de Usuario</strong>
         <p></p>
         <table cellpadding="2">
            <tr>
               <td style="width: 80px;" class="fieldname"><asp:Label runat="server" ID="lblUsername" AssociatedControlID="UserName" Text="Código:" /></td>
               <td style="width: 300px;"><asp:TextBox CssClass="textbox" ID="UserName" runat="server" Width="100%"></asp:TextBox></td>
               <td>
                  <asp:RequiredFieldValidator ID="valRequireUserName" runat="server" ControlToValidate="UserName" SetFocusOnError="true" Display="Dynamic"
                     ErrorMessage="Código de Usuario es requerido." ToolTip="Código de Usuario es requerido." ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
               </td>            
            </tr>
            <tr>
            <td colspan="2">
            <asp:Label ID="FailureText" runat="server" EnableViewState="False" CssClass="error" /> 
            </td>
            </tr>
            <tr>
            <td colspan="3" style="text-align: right;">               
               <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Enviar" ValidationGroup="PasswordRecovery1" CssClass="submit"/>
            </td>
            </tr>
         </table>         
      </UserNameTemplate>
      <QuestionTemplate>
         <div class="sectionsubtitle">Step 2: answer the following question</div>
         <p></p>
         <table cellpadding="2">
            <tr>
               <td style="width: 80px;" class="fieldname">Username:</td>
               <td style="width: 300px;"><asp:Literal ID="UserName" runat="server"></asp:Literal></td>
               <td></td>            
            </tr>
            <tr>
               <td class="fieldname"><asp:Label runat="server" ID="lblQuestion" AssociatedControlID="Question" Text="Question:" /></td>
               <td><asp:Literal ID="Question" runat="server"></asp:Literal></td>
               <td></td>            
            </tr>
            <tr>
               <td class="fieldname"><asp:Label runat="server" ID="lblAnswer" AssociatedControlID="Answer" Text="Answer:" /></td>
               <td><asp:TextBox ID="Answer" runat="server" Width="100%"></asp:TextBox></td>
               <td>
                  <asp:RequiredFieldValidator ID="valRequireAnswer" runat="server" ControlToValidate="Answer" SetFocusOnError="true" Display="Dynamic"
                     ErrorMessage="Answer is required." ToolTip="Answer is required." ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
               </td>
            </tr>
            <tr>
               <td colspan="3" style="text-align: right;">
                  <asp:Label ID="FailureText" runat="server" SkinID="FeedbackKO" EnableViewState="False" /> 
                  <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" ValidationGroup="PasswordRecovery1" CssClass="submitlarge" />                     
               </td>
            </tr>
         </table>         
      </QuestionTemplate>      
      <SuccessTemplate>
         <asp:Label runat="server" ID="lblSuccess" SkinID="FeedbackOK" 
            Text="Tu contraseña te ha sido enviada." />
      </SuccessTemplate> 
      <MailDefinition
         BodyFileName="~/PagComunes/RecuperarPasswordMail.txt"
         From="contacto@mail.com"
         Subject="Intranet UAP Huacho: Tu Contraseña">
      </MailDefinition>    
   </asp:PasswordRecovery>
   </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="titulocolum" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="bodycolleft" Runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="bodycolright" Runat="Server">
</asp:Content>

